package com.decorator;



public class test_LoginSseDecorator {

    public static void main(String[] args) {
        SsoInterceptor ssoInterceptor = new SsoInterceptor();
        System.out.println(ssoInterceptor);
        LoginSsoDecorator ssoDecorator = new LoginSsoDecorator(ssoInterceptor);
        String request = "1successhuahua";
        boolean success = ssoDecorator.preHandle(request, "ewcdqwt40liuiu",
                "t");
        System.out.println("登录校验：" + request + (success ? " 放⾏" : " 拦 截"));
    }

}
